{#
    批量选择
#}
{#
    全选按钮  th
#}
{% macro checkBoxTh(class, other) %}
    <th width="60">
        <input type="checkbox" class="{{ class | raw }}" id="checkboxAll" {{ other | raw }}>
        <label for="checkboxAll" style="display: inline-block;margin-bottom: 0;">全选</label>
    </th>
{% endmacro %}

{#
    分按钮  td
#}
{% macro checkBoxTd(value, class, label, other) %}
    <td>
        <input type="checkbox" class="checkboxItem checkbox-multipel {{ class | default }}" name="select_item[]" value="{{ value }}" {{ other | raw }}>
        <span>{{ label | raw }}</span>
    </td>
{% endmacro %}

{#
    批量删除
    url: 批量删除的api地址
#}
{% macro batchDelete(url, other) %}
    <a href="javascript:void(0);" class="btn btn-danger" data-href="{{ url }}" id="batchDelete" {{ other }}>批量删除</a>
{% endmacro %}

{#
    导入
#}
{% macro import(modelUrl) %}
    <label for="import_id" class="btn btn-info" >导入</label>
    <input type="file" id="import_id" name="request" style="display: none;">
    <a href="{{ asset(modelUrl) }}" class="btn btn-warning" download="">模板下载</a>
    <input type="hidden" id="import_path" value="">
{% endmacro %}

{#
    导出
#}
{% macro export(url ,other) %}
    <a href="{{ url }}" class="btn btn-success" download="" {{ other }} >导出</a>
{% endmacro %}

{#
    批量导出
    url: 批量导出的api地址
#}
{% macro batchExport(url, other) %}
    <a href="javascript:void(0);" class="btn btn-danger" data-href="{{ url }}" id="batchExport" {{ other }} >{{ text | default('批量导出') }}</a>
{% endmacro %}